package com.jifen.mch.vo;

import com.jifen.config.Global;
import org.apache.commons.lang3.StringUtils;

public class MchInfoVo {

    private Integer id;

    private Integer type;

    private String name;

    private String head;

    private String lng;

    private String lat;

    private String address;

    private String phone;

    private int jifenGiveRatio;

    private String[] slidePic;

    private String introduce;

    private String distance;

    private String contactPerson;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHead() {
        if(StringUtils.isNotBlank(head)){
            return Global.getConfig("cdnUrl")+head;
        }
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getJifenGiveRatio() {
        return jifenGiveRatio;
    }

    public void setJifenGiveRatio(int jifenGiveRatio) {
        this.jifenGiveRatio = jifenGiveRatio;
    }

    public String[] getSlidePic() {
        return slidePic;
    }

    public void setSlidePic(String[] slidePic) {
        this.slidePic = slidePic;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getContactPerson() {
        return contactPerson;
    }

    public void setContactPerson(String contactPerson) {
        this.contactPerson = contactPerson;
    }
}
